package com.li.JavaBase;

import java.lang.management.GarbageCollectorMXBean;
import java.lang.management.ManagementFactory;
import java.util.List;
import java.util.concurrent.CountDownLatch;

public class 垃圾回收器 {
	public static void main(String[] args) throws InterruptedException {
		 List<GarbageCollectorMXBean> l = ManagementFactory.getGarbageCollectorMXBeans();
	        for(GarbageCollectorMXBean b : l) {
	            System.out.println(b.getName());
	        }
	}
}
